

package com.hazelcast.internal.serialization.impl;

import com.hazelcast.instance.BuildInfoProvider;
import com.hazelcast.version.Version;

/**
 * Implementation of {@link ClusterVersionAware} that returns current version of the codebase
 */
public class CodebaseClusterVersionAware implements ClusterVersionAware {

    private final Version version = Version.of(BuildInfoProvider.getBuildInfo().getVersion());

    @Override
    public Version getClusterVersion() {
        return version;
    }
}
